package com.jier.service;


import com.jier.common.Page;
import com.jier.common.Result;
import com.jier.entities.User;


/**
 * @author Administrator
 * @date 2016/8/22
 */
public interface IUserService extends IBaseService<User> {
    /**
     * 登陆
     *
     * @param id
     * @param password
     * @return
     * @throws Exception
     */
    User login(Integer id, String password) throws Exception;

    /**
     * 更新用户信息
     *
     * @param userId
     * @param userName
     * @param age
     * @return
     * @throws Exception
     */
    boolean updateUser(String userId, String userName, String age) throws Exception;

    /**
     * 分页获取用户信息
     *
     * @param keyword
     * @param page
     * @return
     * @throws Exception
     */
    Result loadUsersByPage(String keyword, Page page) throws Exception;
}
